/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.cxhd.dc.websocket;

import java.util.Date;
import org.jboss.netty.channel.ChannelHandlerContext;

/**
 *
 * @author Administrator
 */
public class WebClient implements Cloneable {
    private String loginId;// 登录ID
    private String name;//登录名
    private String type;//类别
    private ChannelHandlerContext con;//连接
    private String onlineStatus;
    private String userType; // 0-customer 1-clerk
    private String jobTitle; //职称
    private String department;
    private String signInTime;
   
    private String pk;
  
    private String outTime;//退出时间

  
    private String clientIp;

    public void setCon(ChannelHandlerContext con) {
        this.con = con;
    }

    public ChannelHandlerContext getCon() {
        return con;
    }
    
    

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setType(String type) {
        this.type = type;
    }
    

    public String getLoginId() {
        return loginId;
    }

    public String getName() {
        return name;
    }

    public String getType() {
        return type;
    }

    /**
     * @return the onlineStatus
     */
    public String getOnlineStatus() {
        return onlineStatus;
    }

    /**
     * @param onlineStatus the onlineStatus to set
     */
    public void setOnlineStatus(String onlineStatus) {
        this.onlineStatus = onlineStatus;
    }

    /**
     * @return the userType
     */
    public String getUserType() {
        return userType;
    }

    /**
     * @param userType the userType to set
     */
    public void setUserType(String userType) {
        this.userType = userType;
    }

    /**
     * @return the jobTitle
     */
    public String getJobTitle() {
        return jobTitle;
    }

    /**
     * @param jobTitle the jobTitle to set
     */
    public void setJobTitle(String jobTitle) {
        this.jobTitle = jobTitle;
    }

    /**
     * @return the department
     */
    public String getDepartment() {
        return department;
    }

    /**
     * @param department the department to set
     */
    public void setDepartment(String department) {
        this.department = department;
    }

    /**
     * @return the signInTime
     */
    public String getSignInTime() {
        return signInTime;
    }

    /**
     * @param signInTime the signInTime to set
     */
    public void setSignInTime(String signInTime) {
        this.signInTime = signInTime;
    }

   

    /**
     * @return the pk
     */
    public String getPk() {
        return pk;
    }

    /**
     * @param pk the pk to set
     */
    public void setPk(String pk) {
        this.pk = pk;
    }

    /**
     * @return the clientIp
     */
    public String getClientIp() {
        return clientIp;
    }

    /**
     * @param clientIp the clientIp to set
     */
    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }
    
      @Override
    public WebClient clone() throws CloneNotSupportedException {
       WebClient webClient = null;
        try{
            webClient = (WebClient) super.clone();
        }catch(CloneNotSupportedException e){
            e.printStackTrace();
        }
        return webClient;
    }

    public String getOutTime() {
        return outTime;
    }

    public void setOutTime(String outTime) {
        this.outTime = outTime;
    }


    
    
}
